package com.example.springboottestgit.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboottestgit.bean.SubmitTenderFileUploadRecord;
import com.example.springboottestgit.bean.vo.SubmitTenderFileVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description:
 * @author: ZZZ
 */
@Mapper
public interface SubmitTenderFileUploadRecordMapper extends BaseMapper<SubmitTenderFileUploadRecord> {

    List<SubmitTenderFileVO> submitTenderFileList(@Param("inviteTenderFileId") long inviteTenderFileId);

    //查询投标文件的解析状态
    List<SubmitTenderFileUploadRecord> queryFileStatusList();

    List<SubmitTenderFileUploadRecord> querySubmitTenderFileList(@Param("bsn") String bsn);

    Integer questionNum(@Param("inviteTenderFileId") long inviteTenderFileId, @Param("submitTenderFileId") long submitTenderFileId);

    void updateSubmitTenderFileStatus(@Param("bsn") String bsn, @Param("status") int status);


    String queryFilePath(@Param("bsn") String bsn);
    List<Integer> statusList(@Param("bsn") String bsn);

    int exeCount(@Param("bsn") String bsn, @Param("status") int status);



}
